//
//  FindWebViewController.m
//  Travel assistant
//
//  Created by 王京 on 16/3/4.
//  Copyright © 2016年 旅游助手. All rights reserved.
//

#import "FindWebViewController.h"
#import "DataHelper.h"
@interface FindWebViewController ()<UIWebViewDelegate>

@property (nonatomic,strong) UIWebView *webView;



@end

@implementation FindWebViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.webView = [[UIWebView alloc]initWithFrame:[UIScreen mainScreen].bounds];
    
    self.webView.scalesPageToFit = YES;
    
    self.webView.userInteractionEnabled = YES;
    
    self.webView.delegate = self;
    
    [self.view addSubview:self.webView];
    
    NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:self.find.link]];
    
    [self.webView loadRequest:request];
    
    
    // Do any additional setup after loading the view.
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
